package com.lin.subject.domain.handler.subject;

import com.lin.subject.commom.enums.SubjectInfoTypeEnum;
import com.lin.subject.domain.entity.SubjectInfoBO;
import com.lin.subject.domain.entity.SubjectOptionBO;

public interface SubjectTypeHandler {
    SubjectInfoTypeEnum getHandlerType();

    /**
     * 实际题目的插入
     */
    void insertSubject(SubjectInfoBO subjectInfoBo) throws Exception;

    /**
     * 查询题目的选项及正确答案
     * @param id
     * @return
     */
    SubjectOptionBO query(Long id);

    /**
     * 删除题目
     */
    void deleteSubject(Long id);
}
